<?php 
@session_start();
require_once("../connect_db.php");
$sqlOrder="select * from orders,course where orders.course_id=course.course_id and std_id='".$_SESSION["id"]."'";
$queryOrder=mysql_query($sqlOrder);
?>

<form method="post" enctype="multipart/form-data" name="frmreg" id="frmreg">

<div class="row">
	<div class="col-md-12">
		<div class="panel">
		 
		  <div class="panel-body">
		 
		  
			<table cellpadding="0" cellspacing="0" border="0" class="display" id="Course" width="100%" style="font-size:14px">
	<thead>
		<tr>
			<th style="width:20%;text-align: center !important;color:black; !important;font-size:1em">เลขที่ใบเสร็จ</th>
			<th style="width:40%;text-align: center !important;color:black; !important;font-size:1em">ชื่อหลักสูตร</th>
			<th style="width:20%;text-align: center !important;color:black; !important;font-size:1em">ปริ๊นซ์</th>
		</tr>
	</thead>
	<tbody style="color:black !important;">
	
		<?php while($resultOrder=mysql_fetch_array($queryOrder)){?>
		<tr>
			<td style="text-align: center !important;color:black; !important;font-size:1em"><?php echo $resultOrder["order_id"]?></td>
			<td style="text-align: center !important;color:black; !important;font-size:1em">
			<?php echo $resultOrder["course_name"]?>
			</td>
			<td style="text-align: center !important;color:black; !important;font-size:1em">
		<a href="student/pdf_bill_payment.php?temp=<?php echo $resultOrder["order_id"]?>" target="_blank"><img class="pics"  src="../pic/print.png" width="50" /></a>
			</td>
		</tr>
		<?php }?>
	</tbody>
	
</table>
		  </div>
		</div>
	</div>
</div>
</div>

</form>
<script>
$(document).ready(function(){
  	oTable = $('#Course').dataTable({
          "bJQueryUI": true,
          "sPaginationType": "full_numbers"
      });
	  });
	  </script>